{include file="./headStart.tpl"}
{literal}
<script type="text/javascript">
$(document).ready(function() {
$("#insertBtn").click(function(event){
	var data1 = $(".partyId").val();
	var data2 = $(".categoryId").val();
    if(data1 == 0)
    {
      alert("Select Customer");
      $(".partyId").focus();
      return false;
    }
     if(data2 == 0)
    {
      alert("Select System");
      $(".categoryId").focus();
      return false;
    }
  });
});
</script>
{/literal}
{include file="./headEnd.tpl"}
<form name="form1" action="{$smarty.server.PHP_SELF}" id="form" method="post">
<input type="hidden" name="otherServiceId" value="{$otherServiceId}" />
<input type="hidden" name="othersComplete" value="{$othersComplete}" />
<input type="hidden" name="othersInComplete" value="{$othersInComplete}" />
<table align="center" border="1" cellpadding="2" cellspacing="1" >
	<tr>
	  <td align="center" class="table1" colspan="4">Others Call</td>
	</tr>
	<tr>
	  <td align="left" class="table2">Customer <font color="red"> *</font> :</td>
	  <td class="table2">
	  {if $othersComplete == 1 || $othersInComplete == 1}
	    <select class="validate[required] text-input" name="partyId" id="partyId" disabled="disabled">
	  {else}
	    <select name="partyId" id="partyId" class="validate[required] text-input partyId">
	  {/if}
	      <option value="0">Customer Name</option>
	      {html_options values=$partyId output=$companyName selected=$partySelected}
	    </select>
	    <a href="party.php?redirectFrom=others" class="link">New Customer</a>
	  </td>
	  <td align="left" class="table2">System <font color="red"> *</font> : </td>
	  <td class="table2">
	  {if $othersComplete == 1 || $othersInComplete == 1}
	    <select class="validate[required] text-input" name="categoryId" id="categoryId" disabled="disabled">
   	{else}
	    <select class="validate[required] text-input categoryId" name="categoryId" id="categoryId">
	  {/if}
	      <option value="0">Name</option>
	      {html_options values=$categoryId output=$categoryName selected=$categorySelected}
	    </select>
	  </td>
	</tr>
	<tr>
	  <td align="left" class="table2">Today's Date : </td>
	  <td NOWRAP class="table2">
	  {if $othersComplete == 1 || $othersInComplete == 1}
	    {$complainDateDisplay}
	  {else}
	    {html_select_date prefix="complainDate" time="$complainDateSelected" start_year="-3" end_year="+1" month_format="%m" field_order="DMY" 
	     day_value_format="%02d" disabled=disabled}
	  {/if}
	  </td>
	  <td align="left" class="table2">Target Date :</td>
	  <td class="table2">
	  {if $othersComplete == 1}
	    {$targetedDateDisplay}
	  {else}
	    {html_select_date prefix="targetDate" start_year="-1" end_year="+3" month_format="%m" field_order="DMY" time=$targetedDateDisplay
	     day_value_format="%02d"}
	  {/if}
	  </td>
	</tr>
	<tr>
	  <td align="left" class="table2">Description <font color="red"> *</font> : </td>
	  <td size=5 class="table2"><Textarea Name="description" rows="3" cols="50" required>{$descriptionSelected}</Textarea></td>
	  <td align="left" class="table2">Important Point : </td>
	  <td class="table2"><textarea Name="importantPoint" rows="3" cols="50">{$importantPointSelected}</textarea></td>
	</tr>
	<tr>
  <td align="left" class="table2">Customer Feedback:</td>
  <td class="table2"><textarea Name="customerFeed" Rows="3" Cols="30"></textarea></td>
  <td align="left" class="table2">Customer Signature:</td>
  <td class="table2">______________________</td>
</tr>
	<tr>
	  <td align="center" class="table2" colspan="4"><input class="button" type="submit" name="insertBtn" id="insertBtn" value="Submit" class="insertBtn" onclick="return validateR();"/>
	  {if $othersInComplete == 1 || $othersComplete == 1}
	    <a href="serviceList.php" class="link">Cancel</a>
	  {else}
	    <input class="button" type="submit" name="printBtn" id="printBtn" value="Print" />
	  {/if}
	  </td>
	</tr>
</table>
</form>
{include file="footer.tpl"}